from google.appengine.ext import db
from google.appengine.api import users

class Room(db.Model):
    title = db.StringProperty()
    location = db.StringProperty()
    owners = db.UserProperty()
    geometry = db.StringProperty()
    description = StringProperty()
    
    def reserve(event):
        pass
    
    def release(event):
        pass
    
    def available(datetime):
        pass
    
    def events():
        pass

class Event(db.Model):
    title = db.StringProperty()
    description = db.StringProperty()
    owner = db.UserProperty(required=True)
    room = db.ReferenceProperty(Room, required=True)
    datetime = db.StringProperty()
    status = db.StringProperty()
    
    def approve():
        pass
    
    def deny():
        pass
    
    def validate(room):
        pass
